package com.togo.common.model.token;

/**
 * @author : taiyanan
 * Date    : 2022/1/29
 * Time    : 10:07 下午
 * ---------------------------------------
 * Desc    : TODO
 */
public abstract class AbstractToken implements Token {

    protected Object value;
    protected int lineNumber;

    public AbstractToken(Object value, int lineNumber) {
        this.value = value;
        this.lineNumber = lineNumber;
    }

    @Override
    public int getLineNumber() {
        return lineNumber;
    }

    @Override
    public String getValue() {
        return value.toString();
    }
}
